﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class Program
{
    static void Main()
    {
        Matrix matrix1 = new Matrix(3);
        int start = 7;
        for (int i = 0; i < matrix1.Rows; i++)
        {
            for (int j = 0; j < matrix1.Columns; j++)
            {
                matrix1[i, j] = start;
                start += j + i;
            }
        }

        Matrix matrix2 = new Matrix(3);
        start = 7;
        for (int i = 0; i < matrix2.Rows; i++)
        {
            for (int j = 0; j < matrix2.Columns; j++)
            {
                matrix2[i, j] = start;
                start += j + i;
            }
        }       

        Console.WriteLine(matrix1.ToString());
        Console.WriteLine();
        Console.WriteLine(matrix2.ToString());
        Console.WriteLine();
        Matrix matrix3 = matrix1 * matrix2;
        Console.WriteLine(matrix3.ToString());
    }
}
